package com.itheima.reggie.service;

import com.itheima.reggie.common.PageBean;
import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Orders;

import java.util.Map;

public interface OrderService {
    /**
     * 订单页分页查询
     * @param page
     * @param pageSize
     * @param number
     * @param beginTime
     * @param endTime
     * @return
     */
    R<PageBean> findOrderPage(int page, int pageSize, String number, String beginTime, String endTime);

    /**
     * 用户中心页
     * @param page
     * @param pageSize
     * @return
     */
    R<PageBean> findUserPage(int page, int pageSize,long id);

    /**
     * 用户下单
     * @param orders
     * @return
     */
    R<Orders> submitOrder(Orders orders);

    int updateByWxMap(Map<String, String> map);

    Orders findOrderByNumber(String number);
}
